<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    
    body{
        height: 500vh;
    }
    .pic-box{
        position: absolute;
        left: 50%;
        margin-left: -250px;
        top: 1000px;

        width: 500px;
        height: 500px;
        background:#ddd;
        
    }
    .pic-box img {
    
        width: 100%;
        height: 100%; 
        opacity: 0;
        transition: opacity .1s;  
        /* 过渡 */
    }
</style>
<body>
    <div class="pic-box">
        <img src="" data-image="./5df51a07f0e69a4b.jpg" alt="">
    </div>

</body>

<script src="./防抖节流utils.js"></script>
<script src="./lazyimage1.js">
</script>
</html>